package com.zide.auth.mapper.platform;

import com.zide.auth.domain.entity.platform.PlatformUserRole;
import com.zide.auth.domain.vo.platform.PlatformUserRoleRespVO;
import com.zide.common.config.mybatisplus.ZiDeMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 石添添
 * @description
 * @date 2024-09-10 20:25
 */
@Mapper
public interface PlatformUserRoleMapper extends ZiDeMapperPlus<PlatformUserRole> {
    // 查询用户角色列表
    List<PlatformUserRoleRespVO> selectRoleList(@Param("platformUserId") Long platformUserId);

    int countUserRoleByRoleId(@Param("roleId") Long roleId);

    int deleteUserRoleInfo(PlatformUserRole userRole);

    int deleteUserRoleInfos(Long roleId, Long[] userIds);

    int batchUserRole(List<PlatformUserRole> list);


}
